﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;
using Volo.Abp.Application;
using Volo.Abp.SettingManagement;
using EasyAbp.Abp.Trees;

namespace Joy.Erp.BasicArchives;

[DependsOn(
    typeof(BasicArchivesDomainModule),
    typeof(BasicArchivesApplicationContractsModule),
    typeof(AbpDddApplicationModule),
    typeof(AbpAutoMapperModule),
    typeof(AbpSettingManagementApplicationModule),
    typeof(AbpTreesApplicationModule)
    )]
public class BasicArchivesApplicationModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        context.Services.AddAutoMapperObjectMapper<BasicArchivesApplicationModule>();
        Configure<AbpAutoMapperOptions>(options =>
        {
            options.AddMaps<BasicArchivesApplicationModule>(validate: true);
        });
    }
}
